export default{
	state:{
		text: '',
		voteId: uni.getStorageSync('voteId') || '',
		// 点播跳转播放数据缓存
		recordList: [],
		// 请求header数据
		requestHeader: uni.getStorageSync('requestHeader') || ''
	},
	mutations:{
		editor(state, e){
			state.text = e
		},
		setVote(state, e){
			state.voteId = e
			uni.setStorageSync('voteId', e)
		},
		setRecordList(state, e){
			state.recordList[e.albumId] = e
		},
		setHeader(state, e){
			if(!uni.getStorageSync('requestHeader')){
				state.requestHeader = e;
				uni.setStorageSync('requestHeader', e)
			}
		}
	}
}